
#ifndef ACCOUNTAO_MOCK_H
#define ACCOUNTAO_MOCK_H

#include <stdint.h>
#include <string>
#include "app_platform/cntl_info.h"

#include "erp/account/po/employeepo_account.h"	
#include <set>	
#include <map>	
#include "erp/account/po/businessunitspo_account.h"	
#include "erp/account/po/businessunitsfilterpo_account.h"	
#include <vector>	
#include "erp/account/po/contactpo_account.h"	
#include "erp/account/po/customercreditpo_account.h"	
#include "erp/account/po/employeefilterpo_account.h"	
#include "erp/account/po/contactfilterpo_account.h"	
#include "intf_accountao.h"


namespace erp
{
namespace account
{
namespace ao
{

	class CAccountAoMock : public IAccountAo{
	public:
	    virtual uint32_t DeleteBusinessUnits(
				const CCntlInfo& rCntlInfo,

				const std::string& machineKey,
				const std::string& source,
				uint32_t sceneId,
				uint32_t option,
				uint64_t businessUnitsSysNo,
				const std::string& inReserve,
				std::string& errmsg,
				std::string& outReserve
	    	)
	    {
			errmsg = m_errmsg;
			outReserve = m_outReserve;
			return 0;
	    }		
	    virtual uint32_t DeleteContact(
				const CCntlInfo& rCntlInfo,

				const std::string& machineKey,
				const std::string& source,
				uint32_t sceneId,
				uint32_t option,
				uint64_t contactSysNo,
				const std::string& inReserve,
				std::string& errmsg,
				std::string& outReserve
	    	)
	    {
			errmsg = m_errmsg;
			outReserve = m_outReserve;
			return 0;
	    }		
	    virtual uint32_t DeleteEmployee(
				const CCntlInfo& rCntlInfo,

				const std::string& machineKey,
				const std::string& source,
				uint32_t sceneId,
				uint32_t option,
				uint64_t employeeSysNo,
				const std::string& inReserve,
				std::string& errmsg,
				std::string& outReserve
	    	)
	    {
			errmsg = m_errmsg;
			outReserve = m_outReserve;
			return 0;
	    }		
	    virtual uint32_t GetBusinessUnitsByFilter(
				const CCntlInfo& rCntlInfo,

				const std::string& machineKey,
				const std::string& source,
				uint32_t sceneId,
				uint32_t option,
				const erp::account::po::CBusinessUnitsFilterPo& filter,
				const std::string& inReserve,
				std::string& errmsg,
				uint32_t& total,
				std::vector<erp::account::po::CBusinessUnitsPo >& businessUnitsPo,
				std::string& outReserve
	    	)
	    {
			errmsg = m_errmsg;
			total = m_total;
			businessUnitsPo = m_businessUnitsPo;
			outReserve = m_outReserve;
			return 0;
	    }		
	    virtual uint32_t GetBusinessUnitsBySysNos(
				const CCntlInfo& rCntlInfo,

				const std::string& machineKey,
				const std::string& source,
				uint32_t sceneId,
				uint32_t option,
				const std::set<uint64_t >& businessUnitsSysNo,
				const std::string& inReserve,
				std::string& errmsg,
				std::map<uint64_t,uint32_t >& errorCode,
				std::map<uint64_t,std::string >& errorMsg,
				std::map<uint64_t,erp::account::po::CBusinessUnitsPo >& businessUnitsPo,
				std::string& outReserve
	    	)
	    {
			errmsg = m_errmsg;
			errorCode = m_errorCode;
			errorMsg = m_errorMsg;
			businessUnitsPo = m_businessUnitsPo;
			outReserve = m_outReserve;
			return 0;
	    }		
	    virtual uint32_t GetContactByFilter(
				const CCntlInfo& rCntlInfo,

				const std::string& machineKey,
				const std::string& source,
				uint32_t sceneId,
				uint32_t option,
				const erp::account::po::CContactFilterPo& filter,
				const std::string& inReserve,
				std::string& errmsg,
				uint32_t& total,
				std::vector<erp::account::po::CContactPo >& contactPo,
				std::string& outReserve
	    	)
	    {
			errmsg = m_errmsg;
			total = m_total;
			contactPo = m_contactPo;
			outReserve = m_outReserve;
			return 0;
	    }		
	    virtual uint32_t GetContactBySysNos(
				const CCntlInfo& rCntlInfo,

				const std::string& machineKey,
				const std::string& source,
				uint32_t sceneId,
				uint32_t option,
				const std::set<uint64_t >& contactSysNo,
				const std::string& inReserve,
				std::string& errmsg,
				std::map<uint64_t,uint32_t >& errorCode,
				std::map<uint64_t,std::string >& errorMsg,
				std::map<uint64_t,erp::account::po::CContactPo >& contactPo,
				std::string& outReserve
	    	)
	    {
			errmsg = m_errmsg;
			errorCode = m_errorCode;
			errorMsg = m_errorMsg;
			contactPo = m_contactPo;
			outReserve = m_outReserve;
			return 0;
	    }		
	    virtual uint32_t GetCustomerCredit(
				const CCntlInfo& rCntlInfo,

				const std::string& machineKey,
				const std::string& source,
				uint32_t sceneId,
				uint32_t option,
				uint64_t branchSysNo,
				uint64_t businessUnitsSysNo,
				const std::string& inReserve,
				std::string& errmsg,
				erp::account::po::CCustomerCreditPo& customerCreditPo,
				std::string& outReserve
	    	)
	    {
			errmsg = m_errmsg;
			customerCreditPo = m_customerCreditPo;
			outReserve = m_outReserve;
			return 0;
	    }		
	    virtual uint32_t GetEmployeeByFilter(
				const CCntlInfo& rCntlInfo,

				const std::string& machineKey,
				const std::string& source,
				uint32_t sceneId,
				uint32_t option,
				const erp::account::po::CEmployeeFilterPo& filter,
				const std::string& inReserve,
				std::string& errmsg,
				uint32_t& total,
				std::vector<erp::account::po::CEmployeePo >& businessUnitsPo,
				std::string& outReserve
	    	)
	    {
			errmsg = m_errmsg;
			total = m_total;
			businessUnitsPo = m_businessUnitsPo;
			outReserve = m_outReserve;
			return 0;
	    }		
	    virtual uint32_t GetEmployeeBySysNos(
				const CCntlInfo& rCntlInfo,

				const std::string& machineKey,
				const std::string& source,
				uint32_t sceneId,
				uint32_t option,
				const std::set<uint64_t >& employeeSysNo,
				const std::string& inReserve,
				std::string& errmsg,
				std::map<uint64_t,uint32_t >& errorCode,
				std::map<uint64_t,std::string >& errorMsg,
				std::map<uint64_t,erp::account::po::CEmployeePo >& employeePo,
				std::string& outReserve
	    	)
	    {
			errmsg = m_errmsg;
			errorCode = m_errorCode;
			errorMsg = m_errorMsg;
			employeePo = m_employeePo;
			outReserve = m_outReserve;
			return 0;
	    }		
	    virtual uint32_t ModifyBusinessUnits(
				const CCntlInfo& rCntlInfo,

				const std::string& machineKey,
				const std::string& source,
				uint32_t sceneId,
				uint32_t option,
				const erp::account::po::CBusinessUnitsPo& businessUnitsPo,
				const std::string& inReserve,
				std::string& errmsg,
				uint64_t& SysNo,
				std::string& outReserve
	    	)
	    {
			errmsg = m_errmsg;
			SysNo = m_SysNo;
			outReserve = m_outReserve;
			return 0;
	    }		
	    virtual uint32_t ModifyContact(
				const CCntlInfo& rCntlInfo,

				const std::string& machineKey,
				const std::string& source,
				uint32_t sceneId,
				uint32_t option,
				const erp::account::po::CContactPo& contactPo,
				const std::string& inReserve,
				std::string& errmsg,
				uint64_t& SysNo,
				std::string& outReserve
	    	)
	    {
			errmsg = m_errmsg;
			SysNo = m_SysNo;
			outReserve = m_outReserve;
			return 0;
	    }		
	    virtual uint32_t ModifyCustomerCredit(
				const CCntlInfo& rCntlInfo,

				const std::string& machineKey,
				const std::string& source,
				uint32_t sceneId,
				uint32_t option,
				const erp::account::po::CCustomerCreditPo& customerCreditPo,
				const std::string& inReserve,
				std::string& errmsg,
				std::string& outReserve
	    	)
	    {
			errmsg = m_errmsg;
			outReserve = m_outReserve;
			return 0;
	    }		
	    virtual uint32_t ModifyEmployee(
				const CCntlInfo& rCntlInfo,

				const std::string& machineKey,
				const std::string& source,
				uint32_t sceneId,
				uint32_t option,
				const erp::account::po::CEmployeePo& employeePo,
				const std::string& inReserve,
				std::string& errmsg,
				uint64_t& SysNo,
				std::string& outReserve
	    	)
	    {
			errmsg = m_errmsg;
			SysNo = m_SysNo;
			outReserve = m_outReserve;
			return 0;
	    }		
	
   public:
			std::string m_errmsg;
			std::string m_outReserve;
			uint32_t m_total;
			std::vector<erp::account::po::BusinessUnitsPo > m_businessUnitsPo;
			std::map<uint64_t,uint32_t > m_errorCode;
			std::map<uint64_t,std::string > m_errorMsg;
			std::map<uint64_t,erp::account::po::BusinessUnitsPo > m_businessUnitsPo;
			std::vector<erp::account::po::ContactPo > m_contactPo;
			std::map<uint64_t,erp::account::po::ContactPo > m_contactPo;
			erp::account::po::CustomerCreditPo m_customerCreditPo;
			std::map<uint64_t,erp::account::po::EmployeePo > m_employeePo;
			uint64_t m_SysNo;
	};
	
}
}
}

#endif /* ACCOUNTAO_MOCK_H */

